﻿<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">

    <script type='text/html' template>
        <input type='hidden' name='PID' value="{{ d.params.PID || '' }}" />
    </script>
    <div class='layui-form-item'>
        <label class='layui-form-label'>自提点类型</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <select id="Type" name="Type" lay-verify='required'>
                    <option value='0' {{ d.params.Type == '0' ? 'selected' : '' }}>供应商自提点</option>
                    <option value='1' {{ d.params.Type == '1' ? 'selected' : '' }}>网点自提点</option>
                </select>
            </script>
        </div>
    </div>
    <div class='layui-form-item'>
        <label class='layui-form-label'><span id="sourcespan">供应商/网点</span></label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='SourceName' value='{{ d.params.SourceName || '' }}' lay-verify='required' placeholder='名称' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
    <div class='layui-form-item'>
        <label class='layui-form-label'>自提点</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='Name' value='{{ d.params.Name || '' }}' lay-verify='required' placeholder='自提点' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
    <div class='layui-form-item'>
        <label class='layui-form-label'>联系人</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='UserName' value='{{ d.params.UserName || '' }}' lay-verify='required' placeholder='联系人' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
    <div class='layui-form-item'>
        <label class='layui-form-label'>联系电话</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='Phone' value='{{ d.params.Phone || '' }}' lay-verify='required' placeholder='联系电话' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
    <!--<div class='layui-form-item'>
        <label class='layui-form-label'>详细地址</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='Address' value='{{ d.params.Address || '' }}' lay-verify='required' placeholder='详细地址' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>-->
    <div class='layui-form-item'>
        <label class='layui-form-label'>坐标</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='Gps' value='{{ d.params.Gps || '' }}' lay-verify='required' placeholder='坐标' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
    <div class='layui-form-item'>
        <label class='layui-form-label'>自提时间段</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='TimeSlot' value='{{ d.params.TimeSlot || '' }}' lay-verify='required' placeholder='自提时间段' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
    <div class='layui-form-item'>
        <label class='layui-form-label'>状态</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <select id="State" name="State" lay-verify='required'>
                    <option value='0' {{ d.params.State == '0' ? 'selected' : '' }}>启用</option>
                    <option value='1' {{ d.params.State == '1' ? 'selected' : '' }}>停用</option>
                </select>
            </script>
        </div>
    </div>
    <div class='layui-form-item'>
        <label class='layui-form-label'>备注</label>
        <div class='layui-input-block'>
            <script type='text/html' template>
                <input type='text' name='RMK' value='{{ d.params.RMK || '' }}' lay-verify='' placeholder='备注' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" onclick="Close()" value="关闭" class="layui-btn">
        </div>
    </div>
</div>

<script type="text/javascript">
    function Close() {
        layer.closeAll();
    }
    
    var from, admin, $;
    layui.use(['form','admin','upload','laydate'], function () {
        form = layui.form;//required（必填项）phone（手机号）email（邮箱）url（网址）number（数字）date（日期）identity（身份证） 自定义值
        admin = layui.admin;
        $ = layui.$;

    });


</script>
